Skip to content

[feat]4.6.0 windows#457

Merged
HugoChaan merged 4 commits intodev/4.6.0from
dev/4.6.0-win
Aug 14, 2025
Merged

[feat]4.6.0 windows#457
HugoChaan merged 4 commits intodev/4.6.0from
dev/4.6.0-win

Conversation

@HugoChaan
Copy link
Copy Markdown
Collaborator

No description provided.

@HugoChaan HugoChaan requested a review from Copilot July 8, 2025 09:18
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces new Multipath and Simulcast features to the Windows APIExample app, updating language files, resource IDs, stdafx configurations, and integrating two new dialogs into the main UI.

  • Add Chinese and English translations for Multipath and Simulcast
  • Define new event IDs and language keys in stdafx
  • Create CMultipathDlg and CSimulcastDlg and wire them into APIExampleDlg

Reviewed Changes

Copilot reviewed 53 out of 53 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
windows/APIExample/APIExample/zh-cn.ini Add Chinese entries for Beauty.Face.2, Multipath, and Simulcast
windows/APIExample/APIExample/en.ini Add English entries for Multipath and Simulcast (removed one)
windows/APIExample/APIExample/stdafx.h Define EID_MULTIPATH_STATS and EID_NETWORK_TYPE_CHANGED
windows/APIExample/APIExample/stdafx.cpp Declare beautyFace2, Multipath, advancedSimulcast arrays
windows/APIExample/APIExample/resource.h Add resource IDs for Multipath and Simulcast dialogs
windows/APIExample/APIExample/Language.h Add externs for new language keys
windows/APIExample/APIExample/Advanced/Multipath/CMultipathDlg.* Implement Multipath dialog and event handling
windows/APIExample/APIExample/Advanced/Simulcast/CSimulcastDlg.* Implement Simulcast dialog and event handling
windows/APIExample/APIExample/APIExampleDlg.* Integrate Multipath and Simulcast dialogs into main UI
Comments suppressed due to low confidence (3)

windows/APIExample/APIExample/en.ini:321

  • The mapping for CrossChannel.Ctrl.UpdateMediaRelay was removed, breaking the English translation for that key; please restore it.
CrossChannel.Ctrl.StopMediaRelay = StopMediaRelay

windows/APIExample/APIExample/stdafx.cpp:341

  • [nitpick] The variable Multipath starts with an uppercase letter, whereas other keys use lowercase (e.g., beautyFace2, advancedSimulcast); consider renaming to multipath for consistency.
wchar_t Multipath[INFO_LEN] = { 0 };

windows/APIExample/APIExample/Advanced/Multipath/CMultipathDlg.cpp:450

  • The new Multipath feature posts stats to the UI but no automated tests cover this behavior; consider adding unit or integration tests to validate onMultipathStats handling.
    MultipathStats* stats = (MultipathStats*)wParam;

Comment on lines +39 to +41
RemoteVideoStats* s = new RemoteVideoStats;
*s = stats;
::PostMessage(m_hMsgHanlder, WM_MSGID(EID_REMOTE_VIDEO_STATS), (WPARAM)s, 0);
Copy link

Copilot AI Jul 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A RemoteVideoStats object is allocated and posted but never deleted in OnEIDRemoteVideoStats, leading to a memory leak; either delete it after use or use a stack-based object.

Suggested change
RemoteVideoStats* s = new RemoteVideoStats;
*s = stats;
::PostMessage(m_hMsgHanlder, WM_MSGID(EID_REMOTE_VIDEO_STATS), (WPARAM)s, 0);
RemoteVideoStats s = stats;
::PostMessage(m_hMsgHanlder, WM_MSGID(EID_REMOTE_VIDEO_STATS), (WPARAM)&s, 0);

Copilot uses AI. Check for mistakes.
@HugoChaan HugoChaan merged commit ce80d94 into dev/4.6.0 Aug 14, 2025
0 of 6 checks passed
@HugoChaan HugoChaan deleted the dev/4.6.0-win branch August 14, 2025 12:28
alienzh pushed a commit that referenced this pull request Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants